home *** CD-ROM | disk | FTP | other *** search
- /* param none */
-
- options results
-
- address 'rexx_TVPaint'
-
-
- /* Classic but always great... Try also with a bigger pencil */
- /* press on the + and - keys during the rexxprogram is runing */
-
- /* reset
-
- tv_UpdateUndo
- tv_SetDrawMode Color
- tv_AliasOn
- tv_StencilOff
- tv_DensityOff
- tv_CycleOff
- tv_AeroSpline 10 245
- tv_AeroPower 10
- tv_DensitySpline 255 50
- tv_XMax
- tv_YMax
- tv_WrapX 0
- tv_WrapY 0
- tv_RangeV
-
- */
- tv_GetWidth
- width=result-1
-
- tv_GetHeight
- height=result-1
-
-
- va=5
- vb=6
- vc=7
- vd=5
- ve=8
- vf=7
- a=random(0,width,time('S'))
- b=random(0,height,time('S'))
- c=random(0,width,time('S'))
- d=random(0,height,time('S'))
- e=random(0,width,time('S'))
- f=random(0,height,time('S'))
-
- vt=11
- t=random(0,300)
-
- r=random(0,255,time('S'))
- g=random(0,255,time('S'))
- blue=random(0,255,time('S'))
- wr=5
- wg=6
- wb=4
- do z=1 to 200
- r=r+wr
- if (r>255) | (r<0) then
- do
- wr=-wr
- r=r+wr
- end
- g=g+wg
- if (g>255) | (g<0) then
- do
- wg=-wg
- g=g+wg
- end
- blue=blue+wb
- if (blue>255) | (blue<0) then
- do
- wb=-wb
- blue=blue+wb
- end
-
- tv_SetApen r g blue 255
-
- a=a+va
- if (a>width) | (a<0) then
- do
- va=-va
- a=a+va
- end
- b=b+vb
- if (b>height) | (b<0) then
- do
- vb=-vb
- b=b+vb
- end
- c=c+vc
- if (c>width) | (c<0) then
- do
- vc=-vc
- c=c+vc
- end
- d=d+vd
- if (d>height) | (d<0) then
- do
- vd=-vd
- d=d+vd
- end
- e=e+ve
- if (e>width) | (e<0) then
- do
- ve=-ve
- e=e+ve
- end
- f=f+vf
- if (f>height) | (f<0) then
- do
- vf=-vf
- f=f+vf
- end
-
- t=t+vt
- if (t>300) | (t<-300) then
- do
- vt=-vt
- t=t+vt
- end
-
- tv_Tension t
- tv_Spline a b c d e f
-
- end
-